package com.wuliang.generate.bean.entities.author;

import com.google.gson.annotations.Expose;
import com.wuliang.generate.common.core.basic.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.context.annotation.Lazy;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author 邬魉
 */
@Data
@Lazy
@Entity
@Builder
@Cacheable
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("权限")
@EqualsAndHashCode(callSuper = true)
@Table(name = "t_author_role", schema = "wuliang_generate_author")
public class AuthorRole extends BasicEntity {

    @Expose
    @Column(name = "auth_role_level", columnDefinition = "int(1) null comment '权限级别(从0至9，高到低)'")
    @ApiModelProperty(name = "authRoleLevel", value = "权限级别(从0至9，高到低)", dataType = "int")
    private int authRoleLevel;

    @Expose
    @Column(name = "auth_role_description", columnDefinition = "varchar(255) null comment '权限描述'")
    @ApiModelProperty(name = "authRoleDescription", value = "权限描述", dataType = "String")
    private String authRoleDescription;

    @Expose
    @Column(name = "auth_role_name", columnDefinition = "varchar(255) null comment '权限名称'")
    @ApiModelProperty(name = "authRoleName", value = "权限名称", dataType = "String")
    private String authRoleName;


}
